import request from '@/utils/request'
import upload from '@/utils/upload'

// 登录
export function login(data) {
	return request({
		url: '/auth/token',
		headers: {
			isToken: false
		},
		method: 'POST',
		loading: true,
		data
	})
}

// 获取用户详细信息
export function getInfo() {
	return request({
		url: '/system/user/info',
		method: 'GET'
	})
}

// 退出
export function logout() {
	return request({
		url: '/auth/auth/logout',
		method: 'DELETE'
	})
}